import{K as e}from"./MpnPZlTSagutd.js";import{J as a,s as t,L as r}from"./DrFvzlh8agutd.js";import{a as n}from"./sf48gIWk3aD96J.js";const l=[{en:"Revenues",de:"Einnahmen",credit:1},{en:"External Service",de:"Fremdleistungen",credit:0},{en:"Expenses",de:"Spesen",credit:0},{en:"Office Supplies",de:"Bürobedarf",credit:0},{en:"Mobility",de:"Mobilität",credit:0},{en:"Legal Advice",de:"Rechtsberatung",credit:0},{en:"Telecommunications",de:"Telekommunikation",credit:0},{en:"Goods",de:"Waren",credit:0},{en:"Other",de:"Sonstiges",credit:0}];let d=1;async function y(i=!0){n("Import default properties",async p=>{const s=["de","en"].includes(a.value)?a.value:"en";if(t.workspace?.createItem({_id:e(),_type:"search",title:r("import.searchDefault30Days"),filter:[["lastdays",30]],filterOr:!1}),t.workspace?.createItem({_id:e(),_type:"search",title:r("import.searchDefault90Days"),filter:[["lastdays",90]],filterOr:!1}),t.workspace?.createItem({_id:e(),_type:"search",title:r("import.searchDefaultYear"),filter:[["lastyears",1]],filterOr:!1}),i)for(const c of l){const o={_id:e(),_type:"category",title:c[s],sort:++d};t.workspace?.createItem(o)}t.workspace?.createItem({_id:e(),_type:"account",title:r("import.accountDefaultTitle")})})}export{l as c,y as i};